/*
 * @filename ShardingjdbcEntityManagerFactoryDependsOnPostProcessor.java
 * @author barry
 * @version 0.0.1
 * @date 2019年12月10日
 */
package com.bnzj.core.persistence.config;

import org.springframework.boot.autoconfigure.data.jpa.EntityManagerFactoryDependsOnPostProcessor;
import org.springframework.stereotype.Component;

/**
 * 读写分离数据源依赖项配置
 * @author barry
 * @date 2019-12-10
 * @see org.apache.shardingsphere.shardingjdbc.spring.boot.SpringBootConfiguration#masterSlaveDataSource()
 */
@Component
public class ShardingjdbcEntityManagerFactoryDependsOnPostProcessor extends EntityManagerFactoryDependsOnPostProcessor {
    public ShardingjdbcEntityManagerFactoryDependsOnPostProcessor(){
        super("masterSlaveDataSource"/*, "shardingDataSource"*/);
    }
}
